#include <iostream>

using namespace std;

void select_sort(int array[], int length)
{
	int inner, outer, index, value, median;

	if(NULL == array || 0 == length)
		return;

	for(outer = 0; outer < length-1; outer ++)
	{
		value = array[outer];
		index = outer;
		for(inner = outer+1; inner<length;inner++){
			if(array[inner] < value)
			{
				value = array[inner];
				index = inner;
			}
		}

		if(index == outer)
			continue;

		median = array[index];
		array[index] = array[outer];
		array[outer] = median;
	}
}

int main()
{
    cout << "Hello world!" << endl;
    return 0;
}
